package xcf.data.session.defalut;

import xcf.data.model.Configuration;
import xcf.data.session.ISessionFactory;
import xcf.data.session.ISqlSession;

public class DefaultSessionFactory implements ISessionFactory {

    private final Configuration configuration;

    public DefaultSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }


    @Override
    public ISqlSession openSession() {
        return new DefaultSession(configuration);
    }
}
